home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / basic / grad.exe / GRAD.DOC < prev    next >
Encoding:
Text File  |  1993-02-19  |  2.6 KB  |  100 lines

  1.                           Grad  V1.1
  2.  
  3.                               By
  4.  
  5.                           Nick  Long
  6.  
  7.  
  8.  
  9. ─────────────────────────────────────────────────────────────
  10.  
  11.  
  12. Included files are:
  13.  
  14.        GRAD.DOC  -- This file.
  15.        GRAD.QLB  -- QuickBasic quick library.
  16.        GRAD.LIB  -- Linkable Grad library. Only REGISTERED.
  17.        GRAD.BI   -- Grad inclue file.
  18.        DEMO.BAS  -- QuickBasic demo for Grad libraries.
  19.  
  20. Ok, lets get started. First off, copy the
  21.  
  22.         -GRAD.LIB *Only if you have REGISTERED.
  23.         -GRAD.QLB
  24.  
  25. files to your QuickBasic Library Directory.
  26.  
  27. Then copy the:
  28.  
  29.         -GRAD.BI
  30.  
  31. file to your QuickBasic Include Directory.
  32.  
  33. Run:
  34.  
  35. QB /LGRAD
  36.  
  37. Then type: 
  38.  
  39. '$INCLUDE:' GRAD.BI'
  40.  
  41. And your off.
  42.  
  43. Grad comes with three routines for Gradiating colors.
  44.  
  45. Grad256
  46. GradX
  47. GradXY
  48.  
  49. To call any one of these routines simply type their name followed
  50. by the variables or numbers to be passed to the routine (The numbers
  51. explained in one sec.)
  52.  
  53. Variables used throught this document:
  54.  
  55.              R1 -- A number from 0 to 63 representing the Red content
  56.                    of the first color.
  57.  
  58.              G1 -- A number from 0 to 63 representing the Green content
  59.                    of the first color.
  60.  
  61.              B1 -- A number from 0 to 63 representing the Blue content
  62.                    of the first color.
  63.  
  64.              R2 -- A number from 0 to 63 representing the Red content
  65.                    of the second color.
  66.  
  67.              G2 -- A number from 0 to 63 representing the Green content 
  68.                    of the second color.
  69.  
  70.              B2 -- A number from 0 to 63 representing the Green content
  71.                    of the second color.
  72.  
  73.              X  -- A number from 1 to 256 representing the number of color
  74.                    attributes used gradiate a color.
  75.  
  76.              Y  -- A number from 1 to 256 representing the starting position
  77.                    of a gradiation.
  78.  
  79. The Routines:
  80.  
  81.    -Grad256 (R1, G1, B1, R2, G2, B2) 
  82.  
  83.        Function: Gradiates two colors using 256 frames.
  84.  
  85.    -GradX   (R1, G1, B1, R2, G2, B2, X)
  86.  
  87.        Function: Gradiates two colors using X number of frames.
  88.  
  89.    -GradXY  (R1, G1, B1, R2, G2, B2, X, Y)
  90.  
  91.        Function: Gradiates two colors using X number of frames starting at
  92.                  the Y attribute.
  93.  
  94.  
  95. If you like the Grad libraries and think they will be useful in your
  96. QuickBasic programming send $5.00 + $3.00 s&h to:
  97.  
  98.                         Nick Long
  99.                         162 N. Acacia Ave.
  100.                         Monrovia, CA   91016